package com.scott.user.controller;


import com.scott.user.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("user")
public class UserController {

    @Resource
    private UserService userService;


    // http://localhost:8088/user/hello.do
    @GetMapping("hello")
    public String hello(){
        String rs =  userService.hello();
        return rs;
    }
}
